<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="follow, index" />
<meta name="author" content="iune co." />
<meta name="description" content="IUNE有最好的库存管理SaaS软件。以更快更高的准确度，跟进实时数据的访问和库存移动。" />
<meta name="keywords" content="库存, 存货管理, 库存管理, 仓库管理, 云ERP, 云逸ERP, 中小型企业云ERP, SaaS ERP软件/系统" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>


<style type="text/css">
td {
	padding: 0px;
	width: 100px;
}
</style>
<!-- 
<script type="text/javascript" src="/u2/baseinfo/fileFactory/list.js"></script>
 -->
</head>
<body>

	<div class="container-fluid"
		data-ng-controller="fileFactoryListCtrl as Model" data-ng-init="load()">
		<div class="row">
			<div class="col-sm-12">
				<nav class="nav">
					<ul class="pagination navbar-left buttonBar">
						<li>
							<div class="btn-group" role="toolbar">
								<shiro:hasPermission name="/baseinfo/fileFactory/list:create">
								<button type="button" class="btn btn-info " data-ng-click="Model.add()">
									<span class="glyphicon glyphicon-plus"></span> 新建
								</button>
								</shiro:hasPermission>
								<shiro:hasPermission name="/baseinfo/fileFactory/list:save">
								<button type="button" class="btn btn-default" data-ng-disabled="Model.dataList.currentIndex==null" data-ng-click="Model.edit()">
									<span class="glyphicon glyphicon-edit"></span> 修改
								</button>
								</shiro:hasPermission>
								<shiro:hasPermission name="/baseinfo/fileFactory/list:delete">
								<button type="button" class="btn btn-default" data-ng-disabled="Model.dataList.currentIndex==null" data-ng-click="Model.remove()">
									<span class="glyphicon glyphicon-trash"></span> 删除
								</button>
								</shiro:hasPermission>
								<shiro:hasPermission name="/baseinfo/fileFactory/list:query">
								<button type="button" class="btn btn-default" data-ng-click="Model.refresh()">
									<span class="glyphicon glyphicon-refresh"></span> 刷新
								</button>
								</shiro:hasPermission>
								<div ng-if="false">
								<button type="button" class="btn btn-default" data-ng-click="Model.saveTest()">
									<span class="glyphicon glyphicon-refresh"></span> 测试-保存
								</button>
								<button type="button" class="btn btn-default" data-ng-click="Model.editTest()">
									<span class="glyphicon glyphicon-refresh"></span> 测试-修改
								</button>
								</div>
							</div>
						</li>
					</ul>
					<shiro:hasPermission name="/baseinfo/fileFactory/list:create">
						<query-like data="Model.dataList" place-holder="模糊查询..."></query-like>
					</shiro:hasPermission>


				</nav>

			</div>
		</div>

		<div class="row">
			<div class="col-sm-12">

					<div class="table-responsive">
				<table class="table table-hover table-condensed" style="margin:0px;">
					<thead>
						<tr>
							<th colspan="99"  style="padding:0px;">
							<span ng-if="false">{{Model.dataList.userdata.recordState}}</span>
							<span ng-if="false">{{Model.dataList.userdata.changed}}</span>
							</th>
						</tr>

						<tr>
							<th></th>
							<th>#</th>
							<th><input type="checkbox" data-ng-model="checkboxValue" data-ng-click="Model.checkboxClick($event)"></th>
							<th>启用</th>
							<th>日期</th>
							<th>名称</th>
							<th>编码</th>
							<th>类型</th>
							<th hidden="hidden">行改变</th>
							<th hidden="hidden">行改变值</th>
							<th>备注</th>
						</tr>
					</thead>
					<tbody>
						<tr data-ng-show="row.userdata.recordState!='delete'"
							data-ng-class="{true:'active'}[Model.dataList.currentIndex==Model.dataList.rows.indexOf(row)]"
							data-ng-click="Model.dataList.onRowClick(row,$event);Model.gridRowClick({'rowIndex':Model.dataList.rows.indexOf(row),'rowID':row.fID.value})"
							data-ng-dblclick="Model.dataList.onRowDblClick(row,$event);Model.gridRowDblClick({'rowIndex':Model.dataList.rows.indexOf(row),'rowID':row.fID.value})"
							data-ng-repeat="row in Model.dataList.rows">
							<td style="width: 10px;"><span
								data-ng-show="Model.dataList.currentIndex==Model.dataList.rows.indexOf(row)"
								class="glyphicon glyphicon-hand-right" aria-hidden="true"></span></td>

							<td style="width: 10px;">{{Model.dataList.rows.indexOf(row)+1}}<span></span></td>
							<td style="width: 50px;"><input type="checkbox" data-ng-model="row.userdata.checked"></td>
							<td style="width: 50px;">
								<span data-ng-show="row.status.value=='open'" class="glyphicon glyphicon-ok" aria-hidden="true"></span>
							</td>
							<td style="width: 110px;"><span
								data-ng-bind="row.orderDate.value"></span></td>
							<td style="width: 200px;"><span
								data-ng-bind="row.factoryName.value"></span></td>
							<td style="width: 100px;"><span
								data-ng-bind="row.factoryNo.value"></span></td>
							<td style="width: 100px;">
								<span data-ng-show="row.billType.value=='GCDA'" class="glyphicon glyphicon-home" aria-hidden="true"></span>
								<span data-ng-show="row.billType.value=='MDDA'" class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span>
								<span data-ng-bind="row.billTypeName.value"></span>
							</td>
							<td style="width: 100px;" hidden="hidden"><input type="text"
								data-ng-model="row.userdata.recordState" /></td>
							<td style="width: 100px;" hidden="hidden"><input type="number"
								data-ng-model="row.userdata.changed" /></td>
							<td style="width: 300px;"><span
								data-ng-bind="row.comments.value"></span></td>
						</tr>

					</tbody>

					<tfoot>
								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>
					</tfoot>

				</table>
</div>

			</div>

		</div>

		<!-- 分页组件 -->
		<div class="row">
			<div class="col-sm-12">

				<pag-ination data="Model.dataList" first-text="首页"
					previous-text="上一页" next-text="下一页" last-text="末页"></pag-ination>

			</div>
		</div>


	</div>


</body>

</html>

